<HTML>
<HEAD>
<meta charset="UTF-8">
<title>setItemDecorationSpacing - commons/ui</title>
<link rel="stylesheet" href="../../../../style.css">
</HEAD>
<BODY>
<a href="../../index.html">commons/ui</a>&nbsp;/&nbsp;<a href="../index.html">com.vmadalin.commons.ui.bindings</a>&nbsp;/&nbsp;<a href="index.html">androidx.recyclerview.widget.RecyclerView</a>&nbsp;/&nbsp;<a href="./set-item-decoration-spacing.html">setItemDecorationSpacing</a><br/>
<br/>
<h1>setItemDecorationSpacing</h1>
<a name="com.vmadalin.commons.ui.bindings$setItemDecorationSpacing(androidx.recyclerview.widget.RecyclerView, kotlin.Float)"></a>
<code><span class="keyword">fun </span><span class="identifier">RecyclerView</span><span class="symbol">.</span><span class="identifier">setItemDecorationSpacing</span><span class="symbol">(</span><span class="identifier" id="com.vmadalin.commons.ui.bindings$setItemDecorationSpacing(androidx.recyclerview.widget.RecyclerView, kotlin.Float)/spacingPx">spacingPx</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html"><span class="identifier">Float</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a></code>
<p>Add an <a href="../../com.vmadalin.commons.ui.recyclerview/-recycler-view-item-decoration/index.html">RecyclerViewItemDecoration</a> to this RecyclerView. Item decorations can
affect both measurement and drawing of individual item views.</p>
<h3>Parameters</h3>
<p><a name="spacingPx"></a>
<code>spacingPx</code> - Spacing in pixels to set as a item margin.</p>
<p><strong>See Also</strong><br/>
<p><a href="#">RecyclerView.addItemDecoration</a></p>
</p>
</BODY>
</HTML>
